package com.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fegin.bean.admin.AdminUser;
import com.fegin.bean.common.layuiBean.ResultPage;
import com.fegin.bean.common.layuiBean.VoPage;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 张子艺
 * @since 2019-01-08
 */
public interface UserService extends IService<AdminUser> {
    AdminUser login(String userName, String passWord);


    Map<String, Object> delUser(Long userId, String userName);

    Map<String, Object> insertUser(AdminUser user, Long roleId,Long loginId);

    //查询 分页用户
    ResultPage<AdminUser> findUserByPage(VoPage voPage,Long loginId);

    //查询分销商用户
    ResultPage<AdminUser> findDistributionPeoPleByPage(VoPage voPage);
}
